package edu.cmu.aes.project2.ws.billing;

import java.util.ArrayList;

import javax.jws.WebMethod;
import javax.jws.WebService;

import edu.cmu.aes.project2.wshelper.Billing;
import edu.cmu.aes.project2.wshelper.Invoice;
import edu.cmu.aes.project2.wshelper.Order;

@WebService()
public class BillingService {

	@WebMethod()
	public boolean payBill(Order order){
		System.out.println("Pay bill is called");
		Billing billing = new Billing();
		return billing.payBill(order);
	}
	
	@WebMethod()
	public boolean payBillRollBack(Order order){
		
		Billing billing = new Billing();
		return billing.payBillRollBack(order);
		
	}
	
	@WebMethod()
	public ArrayList<Invoice> getInvoice(String customer_name){
		Billing billing = new Billing();
		return billing.getInvoice(customer_name);
	}
}
